from django.db import models

# Create your models here.
class Dr(models.Model):
    name=models.CharField(max_length=20,verbose_name='账号')
    pwd=models.CharField(max_length=20,verbose_name='密码')
    class Meta:
        verbose_name_plural='账号'
        db_table='dr'
    def __str__(self):
        return self.name
class Sx(models.Model):
    you=models.CharField(max_length=20,verbose_name='油箱')
    pwd=models.CharField(max_length=11,verbose_name='密码')
    mobile=models.CharField(max_length=11,verbose_name='手机号')
    class Meta:
        verbose_name_plural='信息'
        db_table='sx'
    def __str__(self):
        return self.you

class Imgs(models.Model):
    img=models.CharField(max_length=200,verbose_name='图片')
    name=models.CharField(max_length=20,verbose_name='名字')
    bo=models.CharField(max_length=20,verbose_name='播放量')
    sj=models.CharField(max_length=20,verbose_name='时间')
    class Meta:
        verbose_name_plural='详情'
        db_table='imgs'
    def __str__(self):
        return self.img